home *** CD-ROM | disk | FTP | other *** search
-
- /* $Id: GnuplotPlot.h,v 1.1.1.1 1993/03/18 03:33:35 davis Exp $ */
-
- #import <objc/Object.h>
- #import <appkit/Pasteboard.h> /* NXAtom */
- #import <dpsclient/event.h> /* NXSize */
-
- #define UPDATE_NEVER 0 /* Constant update types */
- #define UPDATE_ALWAYS 1
- #define UPDATE_NOT3D 2
-
- @interface GnuplotPlot:Object
- {
- id controller; /* NXApp's delegate */
- id status; /* gnuplot Status */
- id plotScrollView; /* CellScrollView */
- id plotView; /* PlotView */
-
- id window; /* Our window */
- id stringSet; /* controller's string set */
-
- NXZone *zone; /* Our zone */
-
- char *fullPath; /* "UntitledXX" if untitled */
- BOOL isTitled;
- char *readText; /* Text read from a file */
- }
-
- + initialize;
- + setConstantUpdate:(int)updateType;
- + setHalvePlot:(BOOL)condition;
-
- - init;
- - initFromFile:(const char *) filename; /* Filename is full path */
- - free;
-
-
- /*** Target/Action ***/
- - save:sender;
- - saveAs:sender;
- - saveTo:sender;
- - revertToSaved:sender;
- - close:sender;
- - print:sender;
-
-
-
- /*** Setting Instance Variables ***/
- - setName: (const char *) name;
- - (const char *) name;
-
- - setCurrentFont:aFont; /* Awkward for this class to handle this */
- - currentFont;
-
- - window;
- - status;
-
-
-
- /*** Plotting ***/
- - plotFromFile:(const char *)aFullPath;
- - plot:sender;
- - reportScriptError: sender;
-
- - addDataFile:(const char *)aPath;
-
-
-
- /*** Document ***/
- - setDocEdited:(BOOL) state;
- - (BOOL) isDocEdited;
- - hideDocument:sender;
-
-
- /*** Services ***/
- - validRequestorForSendType:(NXAtom)sendType andReturnType:(NXAtom)returnType;
- - (BOOL)writeSelectionToPasteboard:pboard types:(NXAtom *)types;
-
-
-
- /*** Autoupdate methods ***/
- - (BOOL)validateCommand:menuCell;
-
-
-
- /*** Window Delegate Methods ***/
- - windowDidBecomeMain:sender;
- - windowDidMiniaturize:sender;
- - windowDidResignMain:sender;
- - windowDidResize:sender;
- - windowWillClose:sender;
- - windowWillResize:sender toSize:(NXSize *) frameSize;
-
-
-
- /*** Status Delegate Methods ***/
- - settingsDidChange:sender;
-
-
-
- @end
-